﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZP.DTO.Common
{
    public class FileResultData
    {
        public FileResultData()
        {
            SubmitResult = false;
        }
        /// <summary>
        /// true:正确 
        /// false:错误
        /// </summary>
        public bool SubmitResult { get; set; }
        /// <summary>
        /// 返回信息
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 文件名称
        /// </summary>
        public string FileName { get; set; }
        /// <summary>
        /// 文件后缀
        /// </summary>
        public string Extension { get; set; }
        /// <summary>
        /// 文件路径
        /// </summary>
        public string FilePath { get; set; }
        /// <summary>
        /// 企业荣誉标题下附件的ID
        /// </summary>
        public string FileId { get; set; }

        /// <summary>
        /// Base64 图片【当SaveMode=0时有值】
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 保存方式
        /// </summary>
        public FileSaveModeEnum SaveMode { get; set; }
    }

    public enum FileSaveModeEnum
    {
        Base64,
        File
    }
}